package 蓝桥真题.javaB组国赛真题;


import java.sql.Timestamp;
import java.time.LocalDateTime;

public class 重合次数 {
    public static void main(String[] args) {
        int hour=6,min=13,sec=22;
        int res=0;
        while(hour!=14||min!=36||sec!=21){
             if(sec==min&&hour!=min)res++;
             if(++sec>=60){
                 sec=0;
                 if(++min>=60){
                     min=0;
                     ++hour;
                 }
             }
        }
        System.out.println(res);
    }
}
